<template>
	<view class="useingList">
		<!-- 头部导航 --> 
		<view class="headernav" >
			<text @click="changenav(index)" v-for="(item,index) in navList" :key="index" :class="currtindex==index? 'active':''">{{item.name}}</text>
		
		</view>
		<!-- 主体 -->

		<view class="banner">
			<view class="num">
				<text class="num-item">订单编号：202005226789</text>
				<view class="min">
					已取消
				</view>
			</view>
			
			<view class="mealname">
				<view>套餐名称：套餐A</view>
				<view>使用时间：2020.05.08 10:00 (30分钟)</view>
				<text>门店地址：深圳1店(广东省深圳市时代广场)</text>
				<view>门店电话：0755-2200000</view>
			</view>
			</view>
			<view class="banner" v-for="(item,index) in 3" :key='index'>
			<view class="num">
				<text class="num-item">订单编号：202005226789</text>
				<view class="min" v-if="index==1">
					已使用
				</view>
				<view class="min" v-if="index==2">
					已取消
				</view>
				<view class="min" v-if="index==3">
					紧急停机
				</view>
			</view>
		<view class="mealname">
			<view>套餐名称：套餐A</view>
			<view>使用时间：2020.05.08 10:00 (30分钟)</view>
			<view>门店地址：深圳1店(广东省深圳市时代广场)</view>
			<text>门店电话：0755-2200000</text>
		</view>
			</view>
		</view>
</template>

<script>
	export default {
		data() {
			return {
				// 当前点击
				currtindex: 0,
				// 显示隐藏
				navList:[
					{name:'全部',type:0},
					{name:'已使用',type:1},
					{name:'已取消',type:2},
					]
			}
		},
		onLoad() {

		},
		methods: {
changenav(index){
	this.currtindex = index
}
		}
	}
</script>

<style lang="less">
	.useingList {
		padding: 30rpx;

		.headernav {
			font-family:Helvetica;
			height: 58rpx;
			display: flex;
align-items: center;
			text {
				margin-right: 40rpx;
			}
		}

		.active {
			font-size: 42rpx;
			font-weight: 700;
			border-bottom: 16rpx solid #FEDC00;
		}

		.banner {
			padding: 30rpx;
			margin-top: 40rpx;
			height: 264rpx;
			background: rgba(255, 255, 255, 1);
			box-shadow: 0 2rpx 10rpx 0 rgba(0, 0, 0, 0.1);
			border-radius: 12rpx;
.num{
	display: flex;
	position: relative;
}
			.num-item {
				font-size: 34rpx;
				font-weight: 600;
			}
			.mealname{
		    color:rgba(74,74,74,1); 
				margin-top: 12rpx;
				font-size: 26rpx;
				height: 136rpx;
	    	font-family:PingFangSC-Regular,PingFang SC;
				line-height:46rpx;
				margin-top: 24rpx;
			}
			.min {
		   position: absolute;
			 right: 0;
				margin-left: 12rpx;
				width: 112rpx;
				height: 40rpx;
				line-height: 40rpx;
				text-align: center;
				border-radius: 22rpx;
				font-size: 22rpx;
				color:rgba(255,174,0,1);
				background:rgba(255,246,193,1);
				border: 2rpx solid rgba(255,246,193,1);
			}
			
		}
	}
</style>
